<?php
namespace xptml;

if (! defined('DOCROOT')) define('DOCROOT', realpath(dirname(__FILE__) . '/..') . '/');
if (! defined('XPTMLROOT')) define('XPTMLROOT', realpath(dirname(__FILE__)) . '/');

require_once XPTMLROOT . 'library/constants.php';
require_once XPTMLROOT . 'library/functions.php';
require_once XPTMLROOT . 'library/autoload.php';

if (AUTOLOAD)
{
	require_once DOCROOT . 'site/application.php';

	if (ENGINE)
	{
		$App = \Application::start();
	}
}

?>
